Fixed a Wmissing-declarations warning when compiling with MinGW.