slightly hacked to work on Windows with openblas