add a wrapper for add_irg_constraints
fix problems when getting setting NULL as current_ir_graph
adapt to latest firm version