fix dlls compilation errors on Windows