windows fix

hey memo could you pull this in really quick? just a quick #define fix for VS2010. C89 doesn't include math defines by default