Cleaned up Swig resource loading.