Fix double parsing of format strings passed to dialogs
Reorder copy_file to calm Visual Studio warning

Visual Studio code flow analysis fails to recognize that buf is always
assigned at least once.  Reorder the logic to encourage it to recognize
this.
Move sinlen into #ifdef _WIN32

It is only used there.
Make homing_turn_base static const
Fix invalid object access when guidebot searches for unreachable object

Vertigo level #17 triggered a crash on level load by accessing
object_guidebot_cannot_reach when the Guidebot decided to search for a
blue key.  Refactor the lookup code and centralize the check to prevent
that.
Give HUD message when weapon drop fails due to object limit
Mark POrderList,SOrderList as static
Strip trailing -d2x from tag name in build-d2x.sh
Make afterburner bar table const
Pass $CPPFLAGS into environment too
MinGW does not define StringCbVPrintfA
Fix level load hang on >=mingw32-gcc-4.7

Starting in gcc 4.7 "Windows mingw targets are using the -mms-bitfields
option by default." <http://gcc.gnu.org/gcc-4.7/changes.html>.  This
causes __attribute__((packed)) not to be effective on structures that
are used to express the layout of on-disk data.  In turn, that causes
piggy.c to mishandle texture loads, eventually resulting in an infinite
loop.  Add a pragma pack to force the headers to pack tightly on
Windows.
Fix font prototype mismatch in SDL-only case

Commit 33bf139002533b2115251e9f391988001dc8fdc3 changed OGL
gr_internal_color_string to take a const char, but left SDL
gr_internal_color_string with non-const char.
Mark various font functions static
Add zero initializers for char_bm fields
Mark must_clip_line static
Restore SDL-only function must_clip_flat_face

This reverts commit 77be0198204142850bbab32e9ec75bb8d533b69a.
Fix SDL gr_palette_step_up handling of palette_array_t
Discard unused RBAudio parameter properly
Fix Windows-only gettimeofday emulation