Fix compilation errors and warnings in MSVC

Fixes https://github.com/udp/lacewing/commit/2c27cba0abea10b760e239ba278f8dd3cf8aebac#commitcomment-2464921
and possibly the comment on https://github.com/udp/lacewing/issues/32#issuecomment-12371706