Adjust base::thread to changes in task's API

Refers #32