Now buildable using fpc and ./make.sh. Removed Lazarus specific stuff.