Rewrite Makefile to remove rustpkg dependency

Try to preserve the build directory structure as I understand it, which
is binaries in bin/ and libraries in lib/, but without rustpkg to verify
I can't be sure.
Update for the removal of io_error

I/O calls now return an IoResult<T> instead of using the io_error
condition.