Fix missing includes and class MaterialMerger

This PR fixes #23.