Make dynamic linking smarter, so this stuff works before running 'make install'