debug timestamp compilation and type-safety fix
fixed default locale issue on some systems