Fixes compilation opts for posix

Fixes compilation opts for posix
Merge pull request #2 from justartem/patch-2

Fixes compilation opts for posix