Fixed broken ant build and adjusted memory required for regular and gentests build.