Only implement secure malloc if _POSIX_VERSION allows