Modern RGB masks in FreeImage

Modern FreeImage does not store RGB masks unless required to by a 16-bit BMP image. Adds tests for such images and fixes some bugs on ruby 1.9.x (object_id is a long) and OSX (byte is a uint8).