Added MPtoJS cmake build.
Fixed some compile errors.
Authored by: ivicaars 2013-07-22
Parent: [r71]
Child: [r73]