Fixed const issues on Linux