C++11, clean-up, removed write.h

Well, it turned out that was a bad idea