Merge pull request #1 from naodesu/master

Some changes to build without SDL and CUDA.
Using semicolons in optstring of getopt().
Changed indentation in getopt loop.