Temporary fix for osx (NSRect->CGRect)