Fix IDEA build environment
Clean up IDEA makefile