Fixed a bug in the linker flags that wasn't picked up till now
Fixing some deprecation warnings
Upgraded the build system to be retargetable with $PREFIX to places other than just /usr
Made the install command more inteligent
Made the makefile call off to ldconfig more inteligent