Native threads pool
Bugfix in task pool
Better handling of flushing
Merge pull request #5 from tomaka/native-threads-pool

Native threads pool