Made the library position independent. Added makefile