Renamed dynamic linking defines and removed some redundancy.