for linux, add test to confirm it doesn't link against unexpected libs not in package
expected list:
linux-vdso.so.1 => (0x00007ffd92d59000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb2984dd000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007fb295fad000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007fb295d93000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fb295a58000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fb295846000)
libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007fb2955dd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb29166c000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb290c87000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb29097e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb290767000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb29039e000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb28a599000)
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fb289ef5000)
libGL.so.1 => /usr/lib/nvidia-361/libGL.so.1 (0x00007fb289c66000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fb283e7b000)
/lib64/ld-linux-x86-64.so.2 (0x0000561ba640a000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fb27cd3b000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fb27cb18000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fb27c6e7000)
libGLX.so.0 => /usr/lib/nvidia-361/libGLX.so.0 (0x00007fb27b417000)
libGLdispatch.so.0 => /usr/lib/nvidia-361/libGLdispatch.so.0 (0x00007fb27b12f000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fb27638b000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fb276185000)