fix compile error if yp not built