Everything fixed for compilation except with the shared lib createion