Fix a bunch of warnings

That's all, thanks a lot for open sourcing this, it's super useful!