Test for -staticlib flag

Signed-off-by: Austin Seipp <aseipp@pobox.com>