Fix compilation errors and warnings in MSVC

Fixes https://github.com/udp/lacewing/commit/2c27cba0abea10b760e239ba278f8dd3cf8aebac#commitcomment-2464921