modules/core: removed extra semi-colon from mat.inl.hpp and utility.hpp

This silences the pedantic warning messages from gcc 4.8.3
Merge pull request #3556 from rokm:semicolon-warnings