Added linux support to embed API