fixed linker warnings