Adding ifdef for POSIX compat

POSIX doesn't need this silliness. Add an ifdef for it.