Make the std argument optional
Automatically detect available libraries