fixed link flags
cleanup