fix defines when dll present