fix timestamps and prevent variable shadowing inside constructor
Use work-around for incomplete standard libraries