Fix NoSuchMethodError on dedicated servers.