fixup some errors/warnings in buntu 13