Fixed two compile-warnings

Found by travis