fix missing DBL_MAX definition
fix link error on time functions
use cfloat instead of float.h
Merge pull request #3 from ghisvail/bug/fix-ubuntu-1204-build

Fix build issues in Ubuntu 12.04