fixed OpenBSD 4.8 compatibility issues (non-UNICODE build only)