Remove GPL code from the library and annotate the remaining files with a proper license header as per the LICENSE file.