Fix issues #13 and #12
Fix unix build and bool convertion for plugins.
Fix __unix__ and bool convertion.
Correct fix for libdl via CMAKE_DL_LIBS.
Merge pull request #14 from Leryan/master

Fix issues #13 and #12