Fixed a std::free declaration
Fixed some compile errors and warnings on the rpi