Fixes to build.py for 64 bit windows environment.

use os.path.join in several locations as well as fixing the raw string in the @ rule sections

This should also work for windows 32 bit.

I haven't tested this in a unix environment so some tweaks may be needed. I'm hoping not though.