Fixed several compilation errors.

While trying to compile using the new Gradle system I came across several issues.
- Wrong Package Declaration (FIXED)
- Missing Methods (FIXED)
- Missing Dependencies
- etc.

I've fixed quite a few of them.