refactor osx time shim and delete irrelevant parts