Fixes required to compile MATLAB bindings

The following fixes were required to compile MATLAB bindings under linux with MATLAB R2014b.