plugins: add dllexport and dllimport to api funcs