Add option to specify class loader for static resources