fix compiler warnings about missing end of file newlines

* added terminal newlines to util.{ch}pp