Remove java dependency and other unused deps from commonMain utils.kt
Problem: All CI builds were failing except for JVM because there was a Java dependency in the commonMain sourceset
Solutions: Remove the unused Java dependency and some other unused dependencies