Sorted linkage problems due to changes in reaper_plugin_functions.h

I also took the liberty and replaced numerous IMPAPI calls with a single REAPERAPI_LoadAPI() - I hope that's ok :)