Fix SPI build errors in exports.c