improved lib build script, added warning message if boost not found