The linker consistently giving undefined references