CXX-379 Only prohibit shutdown at exit for non-static builds