Merge Windows and OSX specific build systems into the same build system