Standardise on prefix instead of installprefix.
Added option for werror.