Remove some .idea files that aren't needed.
Fix some deprecated usage warnings.