fixed IDEA scala compiler library generation and added an integ test