extractResources only when building with -Poptimize