Misc. bug fixes and workarounds.
Change build location.