add explicit instantiation for Material class, fix linking error