Add missing dynamic lib export, fix warning.