More compatibility issues with the makefile and errors in library