uart: Fix several (not all) warnings