Mac startup crash and boost::array fix