Fixed CMakelists so that maestro will build with scripting.
Added scripting support.