Merge pull request #4 from okulev/port-bwa-0.7

Fixed all compiled errors except those in bwape.c. Fixed struct field alignment problems in bwtio.c.