[bugfix] Compatibility with Magento CE 1.8

Provides compatibility with Magento CE 1.8. This changes are not
backward compatible with 1.7.