snapshot: move local defines after #includes