windows fixes -- resolving issues with incrrectly behaving expf/exp(float) under MSVC2013, plus some other improvements