Eliminate some warnings

And add option to make those compiler errors