Fix compile error on posix.