fix path handling for resources with qt 4.7.4