Fixed installation.
Added patches.