Add boost_thread dependency to get linking working.
Make a copy of the client supplied executor as the supplied one is const.