Implement include guards for mkclass

fixes #7033