Only try to find the Max SDK if it was requested (and show the option to try to build it always)
Use the UTF-8 version of Expat
Clean up plDistributor max/pl point interop

There were two terrible things here:
* Some nasty pointer-based casting
* Storing references to temporaries

Unfortunately, storing addrs of temps was happening through a helper
function, so VS won't warn here. I think I caught all the cases where
those functions were being used wrongly, but I can't be sure until
coverity runs on this commit.
Add better error handling to app.event console command
Fix uninitalized pointer assumed to be null in Listener.XMode console command
Merge pull request #401 from zrax/max_cmake

Only try to find the Max SDK if it was requested
Merge pull request #403 from dpogue/coverity_patches

Coverity patches

Closes #396.
Use pointers instead of array syntax.
Fix an uninitialized value in hsBounds.
Remove unneeded register keyword.

In modern compilers, the register keyword has no effect. On clang, it
generates warnings.
Improve clarity of stat/_wstat64 return value.
Update README and add prepare_env scripts.
Merge pull request #398 from zrax/expat-utf8

Use the UTF-8 version of Expat
Merge pull request #405 from dpogue/readme

Update README and add prepare_env scripts.
Use std math functions in Max plugin.

VS12 provides math functions which were conflicting with ones defined
in texutil.h.  This removes the reliance on texutil.h and uses the
standard library's math in its place.
Add different SetText values to MaxCompat header.

Restores compilation of Max 7 plugin, as its SetText expects
a non-const pointer.

Additionally, NotifyInfo should already be declared in notify.h.
Merge pull request #404 from dpogue/coverity

Coverity
Fix scope on preprocessor variables for Max plugin.

plAudioCore needs to know whether we intend to build the plugin, so
the change introduced in 978edc1 was causing compilation to fail when
building the plugin.

This moves detection and definition back into the root CMakeList,
but preserves the behavior of only looking for the SDK if needed.
Merge pull request #406 from Deledrius/Max7_VS12

Fix compilation of Max 7 plugin in VisualStudio 12