Replace getenv(0) with environ to fix assertion failure on Windows
Fix tableproxy_test