changed makefile to ubuntu equiv. Added fix lines for linking