Fix handling of X resource for window icons.