Well, library pathing is always a problem when trying to compile a standalone program.
I think you may also have a problem with the Guide interfaces.
Why not break you program up into modules, and see which ones compile. That might help locate some of the compiler errors.