Remove unused libs in rakefiles