Fixed include bug and library link issue