Provide support for Solaris

This PR makes a few minor changes to ensure that BATS is able to run correctly on Solaris (tested on Solaris 10)