Change debug color on linux + some warning fixes