fix compiler warnings about missing end of file newlines

* added terminal newlines to util.{c,h}pp