add patch make-the-bitmap-read-routines-return-real-errors-code