[bitmap] Fix bitmaps on 64-bit platforms