Bug 807492 Part 3 - Backport chunk of upstream gtest r629 to fix <tuple> detection on BSDs with old libstdc++, not breaking it on MacOSX r=upstream
Bug 804792 Part 4: Select alsa/pulse/v4l depending on the OS, define WEBRTC_POSIX on BSD r=jesup
Bug 807492 Part 5 - Use the linux codepaths on BSD in audio_device r=jesup

Also open libpulse.so on OpenBSD, different versionning scheme.
Bug 807492 Part 6 - Use linux codepaths on BSD in video_capture, uses v4l2 compatible API r=jesup
Bug 807492 Part 7 - use linux codepath on BSD in video_engine r=jesup
Bug 804792 Part 8 - Use the MacOSX codepath on BSD in voice_engine r=jesup
Bug 807492 Part 9 - support WebRTC on BSD in system_wrappers/ r=jesup

Remove <malloc.h> inclusion in webrtc/system_wrappers/source/atomic32_posix.cc, it breaks on FreeBSD
Bug 807492 Part 10 - Add err.h and xlocale.h to system-headers for WebRTC on BSD r=ted
Bug 807492 Part 11 - Support WebRTC on BSD in network modules rtp/udp r=jesup