updated rules.mk patch to support SDK