Add this to your Build.cs:
PrivateDependencyModuleNames.AddRange(new string] { "Slate", "SlateCore" });
Add this to your .cpp:
#include "WidgetBinder.h"
#include "Components/TextBlock.h"
If there are still errors, the problem is different, probably the version you are using, but they should be resolved in the other post you created.