Fix the Code::Blocks project by including material.{h,cpp}.

Closes #1180.