Fixes for compiling extension against NetLogo 5.0.4 and a language locale fix, thanks to Dr. Gabriel Wurzer!