adding explicit casts to timespec intialization

Fixing narrowing warnings in gcc
Merge pull request #3 from mendsley/narrowing

adding explicit casts to timespec intialization