Fixing linker issues (wasn't finding TPL functions because apparently linked libraries are evaluated in order of declaration in a Makefile and unused functions are discarded.)