Fixed linker errors

* https://code.google.com/p/hedgewars/issues/detail?id=718
* https://code.google.com/p/hedgewars/issues/detail?id=665
* https://code.google.com/p/hedgewars/issues/detail?id=631