Fixed build problems on linux and dumb syntax errors.