I get this error too. For all I know, could be some includes that are missing. I added
It seemed to come through the errors you describe above, but it still doesn't work. (Maybe this isn't a good solution either, for all I know)
Have you found a solution to this?