fixed regular expr that failed to detect improper optimize values; fixed bug that failed to abort build if errors detected in profile; fixes #15788; !strict