Minor compiler and checkpatch fixes