fixed linker problems under Windows