Compile w/o simulink

adds logic to cmake to check for simulink and only build the C++ S Functions when it's possible to build them.