Fix for timer in OSX.