Clock implementation on Windows

Also git checked out the latest version of device.c for OS X for
reference.
Resolved errors

Windows implementation of clock.c now in platform folder. #98