Fix the bug of "Undefined reference to log()."