#1131 Fixed dll visibility bug