Add apriori for prelinking

1. Add apriori from https://android.googlesource.com/platform/build/+/gingerbread
2. Fix it for global prelining.