Correct some GCC warnings, allow for autovectorization