mapi: Use MAPI_EXPORT to export public functions.