Received the following email from Rasmus - be sure to provide feedback if this is useful to you. Thanks, Rasmus, for the submission.
NXT can be programmed with a gcc toolchain (Lego uses IAR). The gcc toolchain setup description I have made is available at http://sourceforge.net/projects/nxtmote. If you have the source code (or not); feel free to try out the toolchain. Please send any corrections to firstname.lastname@example.org.
You can also get the modified source files from me if you also have the source for review now, but you should send me something from the source code so I know I can exchange code with you (sorry I am under NDA until public release of the source). There is also a main.c file for testing the toolchain regardless of the source code. There is one issue described in the PDF at the nxtmote download (last page): I should be happy to collaborate to solve it.
You can download the Source.zip file from http://sourceforge.net/projects/nxtmote by going to the download section on Sourceforge. Then you unzip this directory in c:\nxt for example. Then you should read the nxtmote.pdf and the README.txt file, and try to configure a toolchain according to the descriptions before trying out the simple main.c example. Remember to modify the Makefile according to the instructions in the README file.