use pragma once instead of ifndef guards.

also adds some missing guards to some files.