Merge branch 'master' of github.com:peterix/dfhack
Linux build works again.
Make dfhack.run_script usable from other scripts, and document it.
Fix TEXT mode support, even making it work somewhat.

- Initialize the global pointers before trying to use init.
- Print a message suggesting the use of dfhack-run.
- Don't start the console thread if there is no console.
- When console is disabled, print anything given to it to stderr.
Make the RPC server accept a range of client versions.

Otherwise it sort of defeats the purpose of using version handshake.
ruby: try to fix msvc build (use fastcall for thiscall fptr)
Disable a whole bunch of no-longer-necessary debug output
Hopefully fix DFHack's attempt to pull libstdc++ from somewhere silly (for portability)
Add scripts to run dfhack on the Mac
Merge branch 'master' of github.com:peterix/dfhack
Change the field names returned from dfhack.internal.getMemRanges()

'end' is a lua keyword, so it cannot be used conveniently.
Make offsets with "darwin" os-type recognized as Apple, rather than ignored
Remove build-time dependency on SDL
Ensure that the appropriate libz.dylib is used
Implement getMemRanges() on the Mac
ruby: fix windows build warnings/load ruby.rb
Merge branch 'master' of https://github.com/angavrilov/dfhack
ruby: fix codegen enum base-types
Add lua internal api functions needed for scanning memory.
Sync to the change in gamemode/gametype globals.