Fixing memory corruption issues

Some security fixes that prevent several memory corruption issues and fixed bugs in the brainfuck parser that lead to wrong behavior and also memory corruption. Also: moar compiler warnings enabled.