SConstruct: Yosemite Fix

Fixes compile on Yosemite. With this addition it complies perfectly on Yosemite with no additional code changes necessary. Nice and simple.
CXX-379 Only prohibit shutdown at exit for non-static builds