fixed linker errors