Fix atomic ops on Apple based systems
posix/threads: Fix missing include of sys/time.h
prop: Fix fallout from atomic refactoring when PROP_DEBUG is defined
vda: Fix fallout from queue.h refactoring