add libs and executables.
add option parser.