Enum fix

Change enum to int for linux