Fixed most of the bad habit of starting declarations with __ which could collide with internal c compiler declarations.