waf: ensure that MAKEFLAGS is set before parsing it