fix all warnings (catched on OSX)