Fix resource loading for Qt