Fixed build.gradle files to run this from sources

```./gradlew[.exe] runSource```
I kept getting errors for missing native libraries when run through intellij, so I fixed the bugs with running through gradle(if there were any) to allow me to run the game without intellij.