fixes dll ex; add static link for compile