Added functions "canbuild(category)" and "buildinfo(category)"

Also fixed issue with undefined behaviour of build(category) function
Merge pull request #196 from xiendev/buildinfo-and-canbuild

Added functions "canbuild(category)" and "buildinfo(category)"