Compiled OK for me with the CHDK GCC development kit under Win32.
Note:
        - the bat files control the compilation, you need to adapt 
          the path statement in them to point to your development kit

        - all 3 batches produce a 'diskboot.bin' as output, so rename
          the bin after running to avoid confusion (or adapt the batches,
          of course)