Add missing cast which broke g++ compile
Use "extern" even for local decls, C++ quick fix

See GH-63.
Bump DUK_VERSION for 1.0.2 release