fixed compilation of preLoad function #327
fixed error unloading NULL plugin #327
ignored plugins in plugins dir #327