Fix SO_EXT check to use Linux-style versioning on Linux only