Add missing references in CMake configuration and also fix time_value

This patch allow me to build on clean Mac OS X 10.7