Fix browser test issues

These are things that either create errors or warnings when I compile with the new libc headers, but the fixes are good for everything, so pushing them separately.