Fixed timer issues on posix