But you just said you are using the Arduino Mega?.. so this ESP core will not help you, but here it is.
And of course for the Blynk beta lybrary, use this link…