Added safe versions of C-functions that eliminate some of the MSVC warnings.
Fixed add_subdirectory call on GLSL folder.