fixed x64 problems (C++ class cannot be used in p/invoke definition!)