improved linux compile script