changed c lib to posix, not sure if it works