Ignore build-related directories
Finally fix issues with segmentation faults, and make block_read/write work properly under Python 2.7