rename file and fix define linux