fix build issues when using modules on flurry