Fixing some warnings

Trying to fix all the warnings so that we can actually see the useful
ones