Fix g++ (with -std=c++11) compilation

Fixes for a couple of problems that I encountered, when tried to compile with g++.
* Fixed cast to duk_compiler_stkstate*
* Variadic macros, when using c++11 compilation mode with g++. This basically just removes a lot of warnings generated, if no variadic macros are in use.