#include limits.h where we use it, and don't where we don't

git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14171 f4695dd4-2c0a-0410-b89c-da849a56a58e
treat bool args as booleans rather than ints; no need to compare them a la 'if (boolVal != 0)'

git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14172 f4695dd4-2c0a-0410-b89c-da849a56a58e