Modified rebuild script to include c++11 compile option.