Cleaned up
Merge remote-tracking branch 'upstream/master' into DAO_cleanup

Conflicts:
	src/library/libraryscanner.h
Cleaned code and added some improvements.

Added usage of nice macro LOG_FAILED_QUERY(query) instead of qDebug'ing
lastErrors.
In libraryscanner.cpp avoid #ifdefs by using Qt's
QDir::toNativeSeparators.
Changed postfix increment to prefix.
Added const to functions signatures.
Cleaned code and added some improvements.

Added usage of nice macro LOG_FAILED_QUERY(query) instead of qDebug'ing
lastErrors.
In libraryscanner.cpp avoid #ifdefs by using Qt's
QDir::toNativeSeparators.
Changed postfix increment to prefix.
Added const to functions signatures.
Merge remote-tracking branch 'origin/DAO_cleanup' into DAO_cleanup

Conflicts:
	src/library/dao/libraryhashdao.h
Leaved LibraryHashDAO::updateDirectoryStatuses parameters at it was.
Fixed possible segfault on contol behaviour change. This is a mid-term solution until we have collected all needs by the effect branch and are able to optimize this out.
Merge pull request #44 from troyane/DAO_cleanup

Dao cleanup
remove limits warning from all other targets except linux
removed unrelated changes
Merge pull request #46 from daschuer/atomic-co4

Fixed possible segfault on contol behaviour change.
On Mac OS X, make CoreAudio default and Mad non-default.
Merge remote-tracking branch 'upstream/master' into features_loop_recorder