patch by Markus Peloquin <markus@…> : Fixed the copious memory leaks in libcuefile and changed the headers so C++ could use it.