Edit nimbase.h so that
# define NIM_CONST /* disable const */
Runand see if it makes a difference. If it does, watch out what you do inside `const` sections, maybe this helps you to reproduce the problem in a self-contained example.
