moving the hack for linux into a protected area for linux only