fork of libbmp (https://code.google.com/p/libbmp/)