Declare cnd() function static in black_scholes example

This fixes an issue (#276) when compiling the black_scholes
program on Mac OS X.