add locks to the config and compilation parts
cross-platform locking

by using a socket port as a lock indicator.
remove leftovers from the old file-based locking
fix bug on catch the bind exception
Merge branch 'lock' into merge

Conflicts:
	src/System/Console/Hawk.hs
	src/System/Console/Hawk/Config.hs