allow kdb-static to be real static

also allow to change pic flag
fixes #23