Cleanup and simplification of the posix timeout code.
Cleanup and simplification of the posix timeout code.

henrik242/libdivecomputer,andysan/libdivecomputer,josh-wambua/libdivecomputer,josh-wambua/libdivecomputer,venkateshshukla/libdivecomputer,venkateshshukla/libdivecomputer,andysan/libdivecomputer,glance-/libdivecomputer,Poltsi/libdivecomputer-vms,glance-/libdivecomputer,henrik242/libdivecomputer