fix dll exports for compilation with msvc