apply https://gist.github.com/ryancdotorg/6690445
fix deps: lua5.2 and boost without -mt
fixed filename escaping

for some reasons, the old version created lines like
       outfile = io.open('"build/generated/LEDs.h"', 'w');
which lead to double quoted filenames. the changed version only creates
       outfile = assert(io.open("build/generated/LEDs.h", 'w'));
with wrong quotes, but at least it works