I found the solution my self. You need to tell the compiler that he needs to add the class to the executable. This is done by adding:
%#function ClassificationSVM
load('SVMModel.mat');
This example is specific for ClassificationSVM but you can change is with whatever class you want I assume.