You can use the command
-zapwallettxes to delete the unconfirmed transaction from your wallet.
To do this on a mac, open up a terminal and run
bitcoin-qt -zapwallettxes=2
afterwards it's probably a good idea to run
bitcoin-qt -rescan
(this will take a really long time). After you do this you might have to wait a few hours for the network to completely forget about the txes and then you'll be able to spend them as normal.