turn platform-specific functions into characters and use do.call to circumvent NOTE in R CMD check; closes #28