Fix BASIC_LDFLAGS and COMPAT_CFLAGS for 64bit MinGW-w64

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>