please use
 OC::$CLASSPATH['OC_INT_MESSAGES'] = 'internal_messages/lib/internalmessages.php';
instead