More bug fixes, build now fails during linking rather than compiling.