libm is only needed for preshader support