added build flag to generator script