In the "Arduino\hardware\arduino\avr\cores\arduino\HID.cpp" file in line 109 it says:
if RAWHID_ENABLED
while it should be
ifdef RAWHID_ENABLED
to work properly. This tiny bug turned out to be pretty nasty, had to search quite a while for it...
I am using 1.5.7 of the IDE.