update dealer to be more dll export / import friendly