Hopefully fixed the previous compile errors

It was complaining about the C++11 range-based loops. I changed them to use BOOTIL_FOREACH instead. Should work now.