fixed compiling issues in blkdev.h