Fixed warnings that were found by the mbed online compiler