remove build warnings

Birarda wanted a particular build warning fixed, so I figured I'd fix that and any others I could find.