Unreal Engine 4.18 - Adding c++ feature gives me error

I created a new Blueprint project with First Person template, and then I want to add the Third Person c++ feature. However, as soon as I do, it gives me the errors shown below

And if I try to build the solution in visual studio, i get these errors

I have tried both with VS community 2015 and 2017, reinstalled them both as well as unreal engine. I even reinstalled and formatted all my hard drives, including windows. Still the same problem.

Hey there, is that ResetOrientationAndPosition the only function from UHeadMountedDisplayFunctionLibrary that you use? If that is the case then you might need to include the module for HeadMountedDisplay in the Build.cs.

In your [Project-name].Build.cs file, there is a line that reads:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });

Change it so it looks like this:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay" });

And then will need delete the Blueprint ThirdPersonCharacter, and create a new Blueprint based in you C++ class, add the mesh, Anim_BP and Compile.