Fixes heap bug in freelist. Adds more options to config.ini
Fixes compiler warnings on MSVC.