corrected -L option for OSX compiling