- fix linking with libcdf
- added opt patch (use optflags for tools)