Fix const usage warnings when compiling on Linux