Remove compiler warnings

From http://opm-project.org/CDash/viewBuildError.php?type=1&buildid=6060 we see that there are some unnecessary warnings that can be fixed.