Added C++11 support.
Added sh exit code.