fixed compilation under posix