Would be good to see the src
and lib
folders (and their subfolders) expanded

But your error messages suggest the use of spark_wiring_usbkeyboard
which is not supported on Gen3 devices yet.
There is also a potential issue with KEY_H
being defined in spark_wiring_usbkeyboard
and a #define KEY_H
statement in one of your source files.
You can also read this thread that addresses a related (if not the same) issue.