Fix some warnings that actually are dangerous.