Reorder libraries
Remove dependency on KIO