Split RuntimePatch into 3 part

Split RuntimePatch into 3 part:
1, Outside API;
2, x86 API;
3, posix API;