Support --with-boost=PREFIX option. Check for -lpthread before Boost is