Merge branch 'waf' into matlab