Core: migrated to ResourceLoader for themes.
LMP: fixed gcc 4.7 build.