added cast to glMapBuffer

Caused a compiler error in Windows C++ project