ymsgq is prototyped (NOT TESTED AT ALL).

MISC.
- Android build works.
- some code refining.