remove dependency on boost threads