fixed a bunch of crap about linking order in the final product of the driver