Support 64-bit platforms, also attempt to make .dll/.so/.dylib and unmount_cmd more platform indepdent.

This was tested on Mac OS X 10.9.2 (Mavericks), against gphoto2 version 2.5.3.1.