Add utils.hh with few helper macros
FIX: CustomException::what() may return string garbage

fixes #2