fix x-compilation for windows .dll