From my testing I found that AnimMontage is not included by default in the 4.13 version of the engine. Adding an include statement for the AnimMontage class ( #include "Runtime/Engine/Classes/Animation/AnimMontage.h"
) should prevent the compile error you’re getting.
Cheers