Improve glibhelpers cmake utility

Change-Id: I1004ec25e925e5b31c127c3d7ffbc9b27b530e4c