Fix compile errors caused by API submodule update