Update set_mapgen_params and set_gen_notify Lua API to use new flag format
Fix race condition on exit to menu
Update ABM object counts when triggers add objects

Also fixes long-standing accuracy issue due to unknown wider
object count not being incremented.
Correct misleading detached inventory error message

Looks like a bit of hasty copying and pasting from s_item.cpp.
Fix generating winresource.o with build dir != source dir
Fix error when calling minetest.node_punch without a pointed_thing
Remove goto from Environment::removePlayer
Pass arguments by reference
Replace usage of long long with u64/s64
Fix special characters in pause and message menu
Fix game pause in singleplayer
Use fixed-width format specifiers in serializeStructToString
Revert "Use fixed-width format specifiers in serializeStructToString"

This reverts commit 875f1327a47f78d783c3abc7f7acc3977dc286ec.
Fixed width format specifiers are only officially availale in C99 and C++11.
Make sure we get a stacktrace for as many lua errors as possible
Add support for thread names (linux only)
Fix some unsafe array access operations
Add support for doubleclick exit of formspecs (usefull primary for touchscreen environments)
Use iterators to access vectors to avoid compiler to generate temporarys
Remove a lot of temporarys in guiformspecmenu
Minor fixes
Lots of whitespace fixes
Code cleanup