Build optware

Add patches and scripts to build optware