Fixed realloc, should be monitors.

Moved found to the end of the loop, otherwise found = 1 causing index 0 to
crash.

HACK: Retrieve video modes from platform-specific code.
Create an event queue to store all MirEvents.

This ensures all events come out of the same thread, as well as ensuring
the threads sync up correctly when touching the event queue.
Fix the found issue. Found needs to be 1.

This is needed for realloc, while index should be 0.  So using i for the
index, and found for the count.
Check queue == NULL if we can't connect to server.
Move redundant free to where its not redundant.
Fixed SplitView CMake target name.

Spaces are not allowed in CMake 3.0 target names according to policy
CMP0037.

Fixes #388.
Revert "Fixed make error seen on Mac OS X 10.9.5"

This reverts commit eaab71a8b2ce260a138c5e4f2a2f33246792de2f.

commit 102194831313b981612d4b1cf300945d731915aa resolves the issue commit eaab71a8b2ce260a138c5e4f2a2f33246792de2f solved; only it is by the repository's author.
Merge branch 'master' into develop