Log to file within StackManager to work around callback issue to Java
Disable strict aliasing optimization per Swig's guidance
Handle case where the host name failed to be resolved