Fixed build script to create lib directory if it doesn't exist.
Fixes #1