Working again on GCC and Linux. In fact, works utterly perfectly, unlike on Windows :(