Remove unneeded define
Fix tests for appveyor