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