cmdline(): fix crash on file names without suffix

- fix witespace
- fix error message: print file name
compile with -std=c++0x to support older C++11 compilers
fix typo
Merge branch 'f_enable_cpp11' into f_refractor_openscad