Fixes dllexport problems on windows

... and warings because of double windows makro definition