Add THROW specification to stat calls to match header #3590

Also removes a ton of warnings
Merge branch 'master' of /p/condor/repository/CONDOR_SRC