Fix indirect misuse of $(my-dir).

Change-Id: I4cf9a5bf66d7894995be2b8b045ad80f56190b52
Remove use of pthread_mutex_lock_timeout_np.

Replace it with the portable pthread_mutex_timedlock.

This fixes the 64 bit build, because pthread_mutex_timedlock
isn't defined for LP64.

Change-Id: Ia1dbb970b8d968aab8b325687a3ebadd0c7ece53
Audio recorder missing a callback protector

Bug: 14291968
Change-Id: I620d5e82f58e57e87097984a649b5c3a25c42963
Clean up makefile cruft.

Don't manually include/link stlport, don't include private bionic
headers.

Change-Id: I2b04462f14eca2ba965489c89b6ae5eb9c269984
Move wilhelm over to pthread_gettid_np.

Bug: 17476168
Change-Id: Ib8f00d0934deaefbb5bc07f4f0ab6dc7a4e30988
Aliasing fixes.

Conflicts:
	src/locks.c

Change-Id: Ibf2b9d52fafefad4990f265144aac6001373d89e