Fixes Issue #1 and fixes Issue #13

Fixed compiler error caused by commit
d1e3dc71fd32cf7459cef8130d49d1a93fb7297a.
Removed extra calls to SDL library.