fix bad buffer flush
Merge pull request #12 from rainers/fix_mapfile

fix "Map file contains broken lines on every 16,384 bytes"