Changes for PPC Linux.

Some minor changes were needed for ppc linux, also added some configure script i had floating around.

Made a complete mess of syncing, trying again.