Fix std::vector<bool> compile problems on OSX for Javascript
Fix bug in DohNewStringWithSize(): guarantee string is nul-terminated