Merge pull request #4 from reboot/master

Compilation fails with wxWidgets below version 2.9.0
do not unbind vertex array (GL 3+)
check for link status instead of validate status
allow non-static glew include path
add noreturn attribute to def_crash_handler
enable format string diagnostics for blog and bcrash on gcc and clang
updated .gitignore for osx
added osx cocoa support files
added cmake build files
make code gl-cocoa.m 80 columns for consistency (I'm probably just being OCD, don't mind me, hopefully didn't break anything)
added VAOs to vertex buffers (might need some future tweaking to check whether buffers are already assigned to specific attributes)
added OSX files to automake scripts
removed global VAO from gl-cocoa
unbind VAO if NULL buffer specified
ensure 80-column max formatting in gl-subsystem.c
set cmake output path for test executable
cleaned up main internal data structure design, changed to reference counting for sources to ensure safe destruction of source objects from all parts of the system, added some service-related stuff for testing
Merge branch 'master' of https://github.com/jp9000/obs-studio
fixed broken comparison
adjusted the way source removal is handled to make it a bit more safe