After some research, the best tool for writing these kind of books seems to be
Twine. It is also the only one I found to be working on Windows 7 x64.
I will look into the possibilities of converting these books to mobi format, which could cause some problems, but make the linking a lot easier.