Fixes #200. In order to backport this fix I will need to backport a few bits from #169, but not any of the parts that relate to CFITSIO

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2096 ed100bfc-0583-0410-97f2-c26b58777a21