libcaca: Fix compilation on MinGW-w64

Fixes #483.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>