Fix several compile warnings when testing in no-std mode