Changed default int type to long.
Added refs to shared libraries to fix issue with .net libs not finding it.