Added legacy and standard flags to automated build.