adding -llog into the required libraries