Manually fixing a bunch of linker errors