Resolved octave interface linking error

@jgillis

This resolves linking problems with octave for me, but I still can't use the octave interface...