Clean Compile

Fixed things in several scripts so that the compiler would shut up about
warnings :)