Added bug fixes from jomack and added additional error checking for issues on other platforms (e.g. Win7)
Added bug fixes from jomack and added additional error checking for issues on other platforms (e.g. Win7)

ericblue/MindStream,ericblue/MindStream