linker on ubuntu is finicky, so rewrote makefile