build on Windows (dll fixes)