core,pyglue: fixed misc compile warnings on gcc44

- Fixed a few misc. compile warnings when I tried the latest in the SPI build environment.
- Also fixed a pyglue macro issue when using an alt OCIO build namespace