add compile script for linux, change the directory structure