Fix for windows compilation