Fixed build problems with win 8