fix compile error

free() seems to require an import on my version of sage (v5.8)