adding explicit casts to timespec intialization

Fixing narrowing warnings in gcc