fix posix api for profile class in adportable