compile example with embedded library (still experimental)