fix webserver-lib linking
add additional structure to program