Add ARCH dependant define. Fix: XMP_SDK_DEFINES should be appended to
Escape $ from make, so it can be interpreted by the shell.
Add libm to linker.
Use C++, not C compiler.