Relicense some code files from GPL to 3-clause BSD

This was requested by the Elektra project (https://github.com/ElektraInitiative/libelektra)
in order to be able to use this code.
Merge branch 'feature/relicense-code' into develop