Threadsafe bit_macros.h; Improved bitlocks; Added Makefile target dependecies