make sure FlushEnvironment works on Mavericks
Merge pull request #1 from kingink/feature

make sure FlushEnvironment works on Mavericks