set TargetOptions before passing to createTargetMachine
Merge pull request #486 from crabtw/opts

set TargetOptions before passing to createTargetMachine