fix debug build
workaround for GLEW_AMD_pinned_memory and older glew versions