Set some compiler flags and check env.
Check env and set boost version.
Change C++11 std:: features to std::tr1 boost lib.