PHP 5.3 compatibility fix.
Move theme_directory defining variable in class construct.
Make PHP version 5.3.6 minimal requirement.