[BUGFIX] Make getCompiledFile a static method

TYPO3 sets the deprecation strategy to the strictest possible when in Development mode.
That includes hard Exceptions on PHP 5.6.

This patch makes the method static which shouldnt harm anyone.