Use Posix.major and Posix.minor, removes Linux vapi dependency