Fixes a couple of compilation warnings