Succesfully compiled yWrite Simulink module on Windows and Ubuntu

In this commit considerable changes have been done to the yWrite
CMakeLists.txt file to account for cross-platform compatibility (UNIX
and WIN32). Tests have been carried out in the following setup:

Machine 1:
Windows 7 Enterprise, 64 bit Operating System
Microsoft Visual Studio 2010 Professional (cl compiler)
Matlab 7.12.0 (R2011a)
CMake 2.8.10.2
YARP 2.3.22

Machine 2:
Ubuntu 12.04 LTS, 32-bits Operating System
Compiler used: gcc
CMake 2.8.9
YARP 2.3.60

Also in this commit the other modules from the Simulink library are not
being compiled until their corresponding CMakeLists are changed to the
version used in this module.