py: Move to guarded includes for compile.h and related headers.