This patch fixes an issue with the wrong build rules being selected.