Fixed-up initial timer handling (crude), should really use setitimer() and friends.