use Perl memory alloc functions instead of malloc
fix async test skip on Windows
update .gitignore for Windows compilation artifacts
fix unused vars and statements before declarations