Mega 2560 WiFi - error: 'PinStatus' does not name a type

Do you know what might be considered a better library for this board? The working example I saw for code using this library was with an MKR1000.