make a bunch of #defines into 0/1 instead of ifdef/ifndef