Buildsystem from tdt remake.