fix spaces-in-path bug in extension builds
Merge branch 'headless' into scala-2.11