The "matlab.h" header is no longer need to be included in the driver applications that use C shared libraries. To build an application that uses a MATLAB Compiler generated C shared library, include only the header file that gets generated along with the C shared library.
For additional information, please look at the link below for an example on C shared library target:
http://www.mathworks.com/help/toolbox/compiler/f2-972343.html#f2-1000836