The file juce_MouseCursor.h references JUCE_API on line 48, but does not insure the definition of the JUCE_API macro, therefore adding an include as:
#include “src/juce_core/basics/juce_StandardHeader.h”
solves the (potential) issue.
Bill
P.S. This was SVN312 code.