Allow libs to be passed on command-line.  Use macro to detect whether to call main or new.