fix warnings in linux