Fixed Rmath error with build