took inspiration from rust-skia simple configure script here.