fix clang errors, osx launching

- fixes #192 stupid programmer errors
- should fix the osx crash on startup