py: Move to guarded includes for compile.h and related headers.
Makefiles: Support py/*.h includes per #1022.