Fix warnings
Fix for windows