fixing more compile errors on the pi