integrate hmac integrity check with timestamps in crypto file. fix bug in timepoint serializer.
fix windows compilation