Need to support fflush and error reporting from fflush
Add fflush to libxo.

Merge branch 'ap_libxo_flush' into ap_libxo_master