Added patch to enable cross-compile support