fix ENOSYS return code for linux emulation