Added ifndef to all defines.