add ap_version api to output plugins
Update compiler flags
remove old GMAPI usage
remove accidental commit
reinterpret_cast->static_cast