Removed warnings and errors. ToDO: fixing reference to relic library