Ubuntu Mint 64 gcc ld compilation issue