fix bitmap_startwrite/endwrite, md ast compile error
fix compile error when building raid1.c
add Makefile to build, have minor error here
fix compile errors
Merge pull request #3 from thesues/master

fix all the compile errors, leaving all warnings.