Workaround for reading large FITS files on MacOS X

@embray - since I really needed this to work without upgrading OS X I implemented a workaround which doesn't actually seem too hacky. Is there a reason we can't include this? (Fixes #3078)