updates in  loc, and clang build fixed

updates in  loc, and clang build fixed.
Only graphcut unit test fails with clang (this is why travis will tell you that is pull request does not pass)

37:  OPTIMAL!
37:   * Test Max-Sum with Integer-BOOST-Push-Relabel
37:     - 2nd order grid model with 16 variables and 2 states (functionType = negative potts with unary ) *value = 15.0048  ,  bound = inf
37:  OPTIMAL!
37:     - 2nd order grid model with 9 variables and 2 states (functionType = negative potts with unary ) *value = 8.44018  ,  bound = inf
37: *value = 8.44018  ,  bound = inf
37: *value = 7.11042  ,  bound = inf
37:  OPTIMAL!
37:     - 2nd order grid model with 9 variables and 2 states (functionType = negative potts without unary ) *value = 0  ,  bound = inf
37: *value = 0  ,  bound = inf
37: *value = 0  ,  bound = inf
37:  OPTIMAL!
37:     - 2nd order star model with 5 variables and 2 states (functionType = negative potts with unary ) *value = 9.65443  ,  bound = inf
37: *value = 9.65443  ,  bound = inf
37: *value = 8.8336  ,  bound = inf
37:  OPTIMAL!
37:     - 2nd order full model with 5 variables and 2 states (functionType = negative potts with unary ) *value = 9.65443  ,  bound = inf
37: 9.65443 != 1.1068e+20 [line 94: gm.evaluate(state) == gm.evaluate(optimalState) ]
37: terminate called after throwing an instance of 'std::logic_error'
37:   what():  !exceptionFlag does not hold [line 113]
37/47 Test #37: test-graphcut ....................***Exception: Other  2.71 sec