compatibility changes

Fork of LSM303DLHC by brian claus