Dimers, orientifolds and anomalies