fixed docs and compile error on Linux