Ensure compiler output is in C locale (fixes #5)

... so that library dirs can be parsed reliably; normalize library dir paths.

See issue #5.