Simplify API generation.
Move function.
Check if API object exists.
Update amf-cpp.
Fix building Linux SWC in build script.