mReadBuffer should be _fully_ protected by mReadBufferLock
fix problem with virgin builds (eclipse doesn't like missing dirs)