Fixed problem with linker. Reworked makefile