compiletest: Refactor compile-fail to regex.