fixed some undefined references, more to go, Makefile still sucks