some changes to make the project compiled under gcc_x86_64