Improved the makefile hacks for installing some needed .so files.