add windows timer and fix windows build stuff