Possible fix to issue #23

Check for OS type, if OS is Windows then use the WinDLL function instead of CDLL