adjust makefiles in lib tree, so they don't return an error exit code on "make clean" targets.
(cherry picked from commit 4117218ca3f5d0e726cae55b5d7a38e26c717845)