Fixes compilation opts for posix

Fixes compilation opts for posix