added std:: to a lot of locations which where
missed and added NOMINMAX to cmakelist