Remove old POSIX defintion
Fix case-sensitivity issue leading to compile err on case-sensitive OS