remove unused resources and suppressed some compile warnings.