patches: add script to apply patches
and add patch for system_core
run the apply script before building
TODO: add a patch for libhardware_legacy compile issue