windows: switch projects to SGC by default
windows: fix sgc allocation of executable pages
avoid NULL argument to memcpy()

gcc 4.9 takes advantage of the specification of undefined behavior if
you pass a NULL to memcpy(), even if the last argument is 0