embed resources into cross-platform code