Use thread class loader

Fixes not being able to find properties files when running the jar