Bug 827851 - Move the rules from bug 822017 after including rules.mk; r=ted