Fix compiler warnings for VS2010 /W4 in tranform.c.

- Working towards issue #11.
- Lots of implicit conversions to explicit ones.