Fix type issues with int32 and timespec

* Change in to int32 for consitency
* Use the standard "timespec" struct for VS2015 and above
2 files changed