Fixed complilation under Ubuntu.

 * removed use of toTimeT()
 * add_definitions(-std=c++0x) to allow new C++ features