Make CHD support optional (WITH_CHD) + a few other changes in blkdev_cdimage/hardfile

* removed static for a couple of functions which are used elsewhere in FS-UAE)
* a few log macros are changed to fix some compiler warnings
* added long-long (ll) modifier in a log statement logging a 64-bit int.
* removed an unused variable