Fix Compiler Warnings
More robust timestamp generation