Fix issue #1

Use CXXFLAGS instead of CFLAGS, and update docs on difference between
MATLAB/OS X/Linux/Windows.