Add macro to check os type and use config.h in waf