Edited CMakeFiles to make iCub compiles with SHARED libraries on OS X
Merge pull request #40 from robotology/osx_shared_lib_support

Edited CMakeFiles to make iCub compiles with SHARED libraries on OS X