More fixes for tests compilation issues. Added sbt support for netbeans.