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