Use conditional preprocessing statement for resource loading

  * Likely to be a temporary measure; See FIXME notes for details.