Updated Cmake to use c++11
Multiple change:
    - Changed the isLocked method to return more explicit status codes
    - Changed FAILURE to ErrorCode::Failure and SUCCESS to ErrorCode::Success