Revert "Everything was working on the pi."

This reverts commit df74a7e407a9aa5048f64e2288f1d89965129a35.

Reverted deletion of lib files
Fixed compiler issue