Rework resource bundle target creation so that a single common resource bundle target is shared by all targets. fixes #1338