Modified Makefiles to use shared libraries from build path to avoid having to have the shared library installed for compile.