fixed makefile library issue with ubuntu