Rewrite HasGetConstructorMethod so it works on VS and other compilers