fixed compile linker errors