Fixed compiler warnings (added flag -Wall)