Fix: long* and 64 bit issues.
Added makefile example for unicode build.
Fixed last_error() for unicode build.