copy defines when building feature selection shaders, to avoid sharing references to a single object