Detect GMP and use it if available