Small safety tweaks to PathBrowser.
Cut down on overhead from std::bind copies.
Merge pull request #178 from unknownbrackets/threadpool

Cut down on overhead from std::bind copies in the threadpool.