Refactor common POSIX support out of individual qplatformdefs.h