Issue 55 changes to make xml package work on OS X 10.9

Fixed build errors on OS X by adding function prototypes and changing char to unsigned char. This fixes the xml package - I couldn't get css to build cleanly on OS X due to similar problems in rubex.