Fixed problems with resources not being added to target