Fix common resource build