Remove some linux dependency from loader.c
Windows support
More work on windows build