setting up dll export stuff