Lots of changes..
Merge from github
Load 32/64 bit library as required, decorate stdcall names on Windows