linux ifdef fixes