Fix #95: Restrict platforms the P/Invoke SetEnvironmentVariable.

Only platforms with native code support should be using P/Invoke.
Fix #92: Fix failing TeamCity builds.

TeamCity builds were failing on test_cgcheck because
generate_reflected_calls.py was not updated.