Non-NT platform specific fix-ups

* Use console print '\a' instead of winsound on non-NT platforms.
* Fix directory separators on partialpath in apikey code.