Fix audio streaming and mac semaphores

...The reason why audio didn't work was because I overwrote the bitrate
values.

As for semaphores, mac doesn't support unnamed semaphores without using
mach semaphores.  So, I just implemented a semaphore wrapper for each
OS.
Fix non-windows event code

And remember to compile on non-windows systems before committing
Fix semaphore mac code and mac plugin

Didn't convert the event names and didn't have the right mac includes
Fix wrong linux function

Used the mac function instead by accident
added linux test module with first implementation of a screengrabber using the xshm extension for x11
Added initial Mouse pointer lib

Added library to get the mouse pointer with the XFixes
extension and draw it via a sprite.
Moved screen grabber code to _tick function

Moved the screen grabbing and texture generation to the
_tick function in order to keep _render fast.
Migrated xshm video source to the new plugin api.
added initial pulse audio input plugin

- first try at implementing a pulse audio input plugin,
  it is currently completely untested.

- added license headers to source files
In the API update the diffuse effect got renamed to image.
Removed unnecessary buffer

Instead of copying the data from pulse to a local buffer and
then push it to obs, the pointer from pulse is now used and
pa_stream_drop() called afterwards.
fixed warnings
reformatted source to kernel style
use pa_mainloop_iterate instead of own implementation

pulse audio provides it's own convenience function to
iterate the mainloop, no need to use a custom one.
pulseaudio provides timing information for the stream, we use
that instead of system time.
disable blending for desktop capture
added functions to translate obs settings to pulse
changed to kernel formatting and added some more documentation
Use default pulse audio frame format for recording

We use the default format to avoid any resampling by pulse audio,
since obs will probably resample anyways if necessary.
moved and split up the linux xshm and pulseaudio capture plugins