remove a couple of references to posix_tim
remove a reference to posix_tim
remove a reference to posix_time
add missing include
fix warnings