add a few fixes for gcc

fixes #437
remove unused threadpool class
also use boost codecvt on linux
use correct implementation
Merge pull request #437 from mapbox/fix-gcc

Make linux fails