Fixes to local::packaged_task