Changes for importing new resources in php 5.3 instead of 5.4