Fix std::vector<bool> compile problems on OSX for Javascript