Fix build issues

This pull request fixes few build issues that prevent installing the library with:

``
go get github.com/sjwhitworth/golearn
cd src/github.com/sjwhitworth/golearn
go get ./...
``