removed warnings and compile error on linux