Update buildrules.make to work as a stand-alone set of rules.