Remove C++11 requirement
Add missing #include for time()