Some work for powerpc

Hi @mistydemeo,

Here are some some changes that I had to make that were necessary to get some programs upgraded on my installation.

Please, do not commit those if they are not "mergeable": educate me and I will repush them tweaked in proper ruby.

Thanks for all the help,

Rogério.