[api] Add "POSIX_" prefix to exposed constants and register them based on #ifdef PPDs