attempt to work around silly windows bug due to pre-processor madness