build: fixed includes paths for CHECK_CODE()