Squashed commit of the following:

commit 504527e7dbdb01953b937e67014851ecc3938089
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 29 10:09:13 2012 +0400

    linking and CMake fixes

commit cb44c65a05f2e7150c8fed892cb00865eb00a75f
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 29 02:17:28 2012 +0400

    RImage mingw fix

commit 5e91b61fde88ba3eaa4a3b723748118afd128c41
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 29 01:57:55 2012 +0400

    MinGW FreeImage fixes

commit 2e875847276ec5b7285cb28b3178acb9f7ea4bf3
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 29 00:32:32 2012 +0400

    MinGW capi linking fix

commit b28ac0bc56c7ca4f0a36c66ea4816b67622987f3
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Apr 29 00:16:42 2012 +0400

    MinGW compile fixes

commit 3994892fe980754705adb0812b1ef7dffcbf19dc
Merge: db5e0f3 4b3d9cb
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 23:35:46 2012 +0400

    Merge ../quneiform into dev

commit 4b3d9cb2f2d70bb9aa444e0ed25963dc3e5d9495
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 23:32:08 2012 +0400

    missing header fix

commit db5e0f36ca37fb0754365a7511f26ba8fc047cae
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 22:55:16 2012 +0400

    unused member removed

commit 9b06bac147fef5b449010cea5db27da213ee07cf
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 22:46:04 2012 +0400

    BinarizatorFactory class added

commit a2e928efce873c3896014b168657cd02a8f61b16
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 21:57:03 2012 +0400

    Binarizator refactoring

commit 7a5fc1eeb321aa73c84d6b27d00df883119e492e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 21:31:18 2012 +0400

    OldBinarizator class added

commit c2842753cfb318616ed9d6089d11a68dfcebcdd8
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 20:52:08 2012 +0400

    threshold binarizator refactoring

commit 70f6b23147960dd11f25e29ead15cebd3a87b048
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 20:49:14 2012 +0400

    binarizator functionality added

commit 3bc59a0d0a3d5e2a548dbd946d402c2f9218115e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Apr 28 17:44:48 2012 +0400

    Threshold binarizator added

commit c727184e6254ad4018f601356d67fd2f34d02a2c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Apr 27 02:08:18 2012 +0400

    cmake configure option update

commit 4734569f875ed325730fc20a755e252acffdb008
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Apr 27 02:06:31 2012 +0400

    FreeImage library support added

commit 1f79271e2b85ffbccf39ee3948edc060821decac
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Apr 26 10:11:40 2012 +0400

    RImage api cleanup

commit b15bd36f54fa466d36198c18f04eb4e4c15fda0d
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 25 09:28:43 2012 +0400

    formatting

commit 1803a1ff51d8560df8cd99b9053b0cb54a49e4f0
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Apr 9 13:08:03 2012 +0400

    NetBSD loader test fix

commit c75284f9cb44a0cab841c8948b62adeb8e6979ba
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 25 09:17:39 2012 +0400

    ImageFormatList added

commit b39a83a552d501a13f4a245233581aab2d483f13
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Apr 25 02:16:37 2012 +0400

    CFIO module removal