add conditional compile flags per compiler and platform
fix missing header and qualifiers in Buffer::loadFromWAV