At build time, check for correct size of BlasInt.

Returns helpful error message as discussed in #5050, #4744