Fixed pass_gen for OS X