Fixed build problems of static lib w/o DTFoundation