Fixed dependencies and JVM memory settings for successful build.