Leap Motion C++ Custom Gestures

I am trying to create custom gestures for the leap motion controller and created a c++ that derives from LeapController, but as soon as that file was created, the engine started showing me errors within the official Leapmotion c++ files. Did anyone else have that problem? And how was it solved? Any help will be greatly appreciated. The version of the Leapmotion plugin I am using is 2.0.0 on the 4.17.2 version of ue4.