Fixed the build errors that prevented the spi functions and test application