prepare the work for out of tree building (resource file copying is still bogus)