Fixed issue #25: Factory class does not exist in Magento < 1.8