I agree that EmbedInitGlue.h needs to be fixed not to rely on existence of PWD.
Meanwhile I've added this patch as temporary workaround to Nemo's qtmozembed.