Build fixes

I made a couple of fixes so this builds outside of a standard opticks source tree (i.e. pays attention so $OPTICKS_CODE_DIR)