Add option to generate static executable