For patch #49 Add Haiku platform support

Adpated from patch, infrastructure for Haiku OS support, not yet complete.
For GLEW Patch #43 - const correctness with the OGL 4.4 specs
For GLEW Patch #42 - Patch for _CRT_SECURE_NO_WARNINGS