fix build on win32 cygwin/mingw

Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
Mixing lua and C++ was never meant to be done

Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>