Updated and simplified code generation of examples
… in CGT

- Added macro for generation and compilation of
  exported code, see cmake/UseACADO.cmake
- Fixed crane mhe and penudulum dae examples
- Adopted the build system a bit.