preparing subdir tree for OS sources, adding some library code