Fix build

Applyed patches from

http://kambing.ui.ac.id/gentoo-portage/games-simulation/cannonsmash/files/

to fix build