Error compiling arduino editor but not IDE

The IDE does some magic behind the scene. Can you get hold of the preprocessed C++ files?

The libraries seem to use different incompatible classes etc.
Don't mix libraries from Arduino and other frameworks.
Rewrite your code to conform to the actually used libraries.