remove warnings

We've been piling up warnings for a while, and I was too burnt out for real thinking work, so I decided to remove some of the warnings on linux.