update app/app_rules.mk

modified the rules of app/app_rules.mk and the head/lib path