Fix linkage problem for OS X
Fix installation directory bug for imathnumpy