Issue #298: Move some utility functions to pyi_utils.c.
Issue #298: Fix compilation on Windows.
Issue #298: Eliminate the need for temppathraw in bootloader on Windows.