Gate implementation of stb_image to OSX