fix A bug of printing - #192
better fix - #192
fix for dlopen error message (from Neeraj Rai) #189 & #195