Build fixes for Windows (gemini lib)
Fix signed/unsigned mismatches