SplClassLoader implementstion based on https://gist.github.com/jwage/221634