64bit safe bmp texture loading on Mac.