Removed dependencies on Wine internal functions.