Use threaded runtime when compiling the executable.