Linux c++11

Starts to add C++11 support. This was done first on timing library, where it was needed most. The whole code should be compilable unchanged on any compiler that supports C++11.

It is also important to notice that the timing library is not finished.