Fix return for linux build