Add build script to build indexing and query components