Remove some leftover debug code
Relicense from LGPL3 to Apache 2.0