windows porting fixes for -ldl