can also compile with linking to libeg