use psr-4 autoloader

use the psr-4 autoloader since target-dir is deprecated.