Corrected for windows compilation