fix blocking writer on ubuntu 13.10