Mounting devices for pumps or compressors