add libdl check, add check_libs hof, make other cc_check functions composable
waf: checks, make them META