fixed some warnings from Wall compilation