Various prototype changes for MSVC 12.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>