Fix win, linux and mac build