Add ass_library_version()

Based on the patch by chadr123.

See google code issue #113.
Try to make really weird looking macro mess more understandable

The "if (0) {  // cool ;)" is just mindblowing.