Pushed version to 0.5.0, Windows build fixes