win compiling compatibility

- added macro for PI constant, if not defined