Fixed boost::filesystem link error and fixed gcc 4.8 warning.