Add definitions to fix build error