Fix build on linux and finish timer module