Fixed 64bit linking issues, had to go back a few steps; will reimplemenet auto-loading of plugins (again) next