added support for building from HEAD