Use boost to implement msleep.