clib: update to 1.4.0 and add HEAD version support

Update clib

For reference:

<https://github.com/clibs/clib/issues/101>