Building as dll