Added an error message if no bit libraries are available.
Actually set the environment metatable.