Part of bug 896738 - Fix various strict warnings to reduce failures in xpcshell tests due to warnings. r=jcranmer. Part bustage fix for CLOSED TREE