Compile against IDEA 14. Removed some deprecation warnings.