Move SPI to lib dir