changed so it builds dylib instead of so shared lib file (needed on Mac)
updated to use the const ENV instead of directly calling EnvHash()