Added automatic compiler options for OS X
If simulink library is enable, now we automatically add the CXX flag "-fPIC" to the compiler