Updated makefile and ld script